'use strict';

module.exports = {
  up: function (queryInterface, Sequelize) {
    return queryInterface.dropTable('data_versions')
      .then(() => {
        return queryInterface.dropTable('verification_codes');
      })
      .then(() => {
        return queryInterface.dropTable('login_logs');
      })
      .then(() => {
        return queryInterface.dropTable('groups');
      })
      .then(() => {
        return queryInterface.dropTable('group_syncs');
      })
      .then(() => {
        return queryInterface.dropTable('group_members');
      });
  },

  down: function (queryInterface, Sequelize) {
    /*
     Add reverting commands here.
     Return a promise to correctly handle asynchronicity.

     Example:
     return queryInterface.dropTable('users');
     */
  }
};
